Skip to content

Implementing Colour Refinement#905

Draft
RheyaM wants to merge 4 commits intodigraphs:mainfrom
RheyaM:ColourRefinement
Draft

Implementing Colour Refinement#905
RheyaM wants to merge 4 commits intodigraphs:mainfrom
RheyaM:ColourRefinement

Conversation

@RheyaM
Copy link
Contributor

@RheyaM RheyaM commented Mar 11, 2026

Implementation of DigraphColourRefinement. Takes a digraph and returns a colouring (A list where value at ith position is the colour of the ith node), such that all nodes with the same colour have the same configuration of coloured neighbours. That is, if two nodes have the same colour, they will have the same number of neighbours of colour x, and colour y, etc. DigraphColourRefinement considers out and in neighbours separately.

To be used for testing isomorphism between digraphs. If two digraphs produce two different colouring under Colour Refinement, we can know that they are not isomorphic.

Doesn't currently include optimisation steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants